﻿using System;
using System.ComponentModel.DataAnnotations;

namespace StoreDemo.Domain.Entities
{
    public class Product
    {
        [Key]
        public int ProductId { get; set; }

        [Required]
        public string Name { get; set; }

        [Required]
        public string Description { get; set; }

        [Required, DataType(DataType.Currency)]
        public double Price { get; set; }

        public DateTime Created { get; set; }
    }
}